<?php

namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;


class Report extends Model
{
    protected $table = 'media_report';
    public $timestamps = false;
    public function media()
    {
        return $this->hasOne('App\Models\Media', 'id', 'media_id');//->select(['id', 'name', 'mobile', 'avatar']);
    }

    public function user()
    {
        return $this->hasOne('App\Models\User', 'id', 'uid');
    }
    public function report_type()
    {
        return $this->hasOne('App\Models\ReportType', 'id', 'report_type')->select(['id','name']);
    }

}
